package com.hollysys.hollimsa.common.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 业务异常
 * @author wangyuxi
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessApiException extends RuntimeException implements Serializable {

    private static final long serialVersionUID = 1L;

    private final String code;
    private final String msg;

    public BusinessApiException(String code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }
}
